﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site.master" AutoEventWireup="true" CodeFile="carrinho.aspx.cs" Inherits="Usuario_carrinho" %>

<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" Runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" Runat="Server">
<div>
    <b>Carrinho de Compras</b><br />
    <br />
    <asp:GridView ID="gvwCarrinho" runat="server" AutoGenerateColumns="False" OnRowCommand="gvwCarrinho_RowCommand">
        <Columns>
            <asp:BoundField DataField="idProduto" HeaderText="ID" />
            <asp:BoundField DataField="nomeProduto" HeaderText="Nome" />
            <asp:BoundField DataField="preco" HeaderText="Preço" />
            <asp:BoundField DataField="quantidade" HeaderText="Preço" />
            <asp:TemplateField>
                <ItemTemplate>
                    <asp:LinkButton ID="lbtnRemover" runat="server" CommandArgument='<%# Eval("idProduto") %>' CommandName="Remover">Remover Produto</asp:LinkButton>
                </ItemTemplate>
            </asp:TemplateField>
        </Columns>
        <EmptyDataTemplate>
            O carrinho está vazio!
        </EmptyDataTemplate>
    </asp:GridView>
    <a href="/Default.aspx">Continuar Comprando</a><br />
    <asp:Button ID="btFinalizarCompra" runat="server" Text="Finalizar Compra"  onclick="btFinalizarCompra_Click" />
</div>
</asp:Content>

